package com.chezhujie.www.domain;

import com.chezhujie.www.core.init.mysql.BaseEntity;
import com.chezhujie.www.core.init.mysql.annotation.Column;
import com.chezhujie.www.core.init.mysql.annotation.Entity;
import com.chezhujie.www.core.init.mysql.annotation.Id;
import com.chezhujie.www.core.init.mysql.annotation.Table;

/**
 * 
* 类名称：菜单
 */
@Entity
@Table(name="czj_xy_menu",describe = "菜单栏")
public class XyMenu extends BaseEntity{
	@Id
	@Column(describe = "菜单ID",length = 19,inputType = "hidden")
	private String menuId;		//菜单ID
	@Column(describe = "菜单名称",length = 19,inputType = "text")
	private String name;	//菜单名称
	@Column(describe = "菜单标识",length = 19,inputType = "text")
	private String nameEn;
	@Column(describe = "链接",length = 19,inputType = "text")
	private String url;//全访问链接，从 /项目名称之后开始/
	@Column(describe = "上级菜单",length = 19,inputType = "select",inputCode = "str")
	private String parentId;	//上级菜单ID,0表示最顶层
	@Column(describe = "排序",length = 2,inputType = "int")
	private Integer orderBy;	//排序
	@Column(describe = "显示或隐藏",length = 19,inputType = "switch",inputCode = "displayhidden")
	private Integer status;	//菜单状态
	@Column(describe = "有下一级菜单",length = 2,inputType = "switch",inputCode = "yesorno")
	private Integer hasMenu;
	@Column(describe = "是菜单",length = 2,inputType = "switch",inputCode = "yesorno")
	private Integer ifMenu;

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public Integer getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(Integer orderBy) {
		this.orderBy = orderBy;
	}


	public Integer getHasMenu() {
		return hasMenu;
	}

	public void setHasMenu(Integer hasMenu) {
		this.hasMenu = hasMenu;
	}

	public String getNameEn() {
		return nameEn;
	}

	public void setNameEn(String nameEn) {
		this.nameEn = nameEn;
	}

	public Integer getIfMenu() {
		return ifMenu;
	}

	public void setIfMenu(Integer ifMenu) {
		this.ifMenu = ifMenu;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}
